//
//  UIColor+RandomColor.m
//  UI4_事件处理
//
//  Created by dllo on 15/9/16.
//  Copyright (c) 2015年 Ganxia. All rights reserved.
//

#import "UIColor+RandomColor.h"

@implementation UIColor (RandomColor)

#define RANDOMCOLOR arc4random() % 256 / 255.0

+ (instancetype)colorWithRandom
{
    return [UIColor colorWithRed:RANDOMCOLOR green:RANDOMCOLOR blue:RANDOMCOLOR alpha:0.5];
}

@end
